<? 
/***************************************************************************
 *                           dsp_view_editor.php
 *                          ---------------------
 *   begin                : Friday, Aug 19, 2005
 *   copyright            : (C) 2005 cyber8 netWorks
 *   email                : support@cyber8.net 
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/
 
$path_to_load = $mfile==""?$filename:$mfile;
$path_to_load = str_replace( "~", "=",$path_to_load );
$file_content = implode ( '', file ($path_to_load) ); 


#exit;
#$file_content = str_replace( "&", "&amp;",$file_content );
#$file_content = str_replace( "<", "&lt;",$file_content );
#$file_content = str_replace( ">", "&gt;",$file_content ); 


?><div id="dfilelist"></div>
 <style>
 code {font:8pt 'lucida console'}
 </style>
<form style="margin:0" action="<?= $href ?>?<?= $qs?>" method="post" id="textform">
 <input type=hidden size=70 name=Iaddress value="<?= $path_to_load ?>">
<div wrap=off contenteditable class=resizeXY style="font:8pt 'lucida console';overflow:auto;border:solid 1px;" id="dhtml" name="dhtml"
><table><tr><td style="font:8pt 'lucida console'" nowrap><? highlight_string ($file_content); ?></td></tr></table></div>
<input type=hidden name=scrollL value="0">
<input type=hidden name=scrollT value="0">
<input type=hidden name=html value="">
</form>
 
 <!--
 <pre wrap=off class=autocomplete style="font:8pt 'lucida console'" id="html" name="html"
><? highlight_string ($file_content); ?></pre>
 -->